package com.example.demo.mapper;

import com.example.demo.entity.Museum;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

@Mapper
public interface MuseumMapper {
    // 假设只有一条简介，取id最小的那条
    @Select("SELECT * FROM museum ORDER BY id LIMIT 1")
    Museum getMuseumIntro();
}
